<table class="table table-bordered">
    <thead>
        <tr>
            <!-- <th></th> -->
            <th>产品ID</th>
            <th>产品分类</th>
            <th>产品标题</th>
            <th>产品序号</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody id="ajaxList">
        {if empty($list)}
            <tr><td colspan="6" style="text-align:center;">暂无数据</td></tr>
        {/if}
        {foreach name="list" item="vo" key="k" }
        <?php
        $kind=db('product_kind')->where('kind_id='.$vo['kind_id'])->find();
         ?>
          <tr role="row">
            <!-- <td><input type="checkbox"></td> -->
            <td>{$vo.id}</td>
            <td>{$kind.kind_name}</td>
            <td>{$vo.title|getSubstr=0,33}{eq name="vo.is_tj" value="1"}<font color="red">（推荐）</font>{/eq}</td>
            <td><input type="text" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onpaste="this.value=this.value.replace(/[^\d]/g,'')" onchange="updateSort('product','id','{$vo.id}','sort_order',this)"  size="4"  value="{$vo.sort_order}" /></td>
            <td>
              <!-- <a target="_blank" href="{:url('Home/Article/detail',array('article_id'=>$vo['id']))}" data-toggle="tooltip" title="" class="btn btn-info" data-original-title="查看详情"><i class="fa fa-eye"></i></a> -->
              <a class="btn btn-primary" href="javascript:;" onclick="openYemian('/index.php/Admin/Product/product_form/id/{$vo.id}','编辑产品内容')"><i class="fa fa-pencil"></i></a>
              <a class="btn btn-danger" href="javascript:void(0)" data-url="{:url('Product/product_del')}" data-id="{$vo.id}" onclick="delRecord(this,'确定删除该产品？此操作不可恢复！',{$vo.id},'/index.php/Admin/Product/product_del')"><i class="fa fa-trash-o"></i></a>
              <a href="javascript:void(0)" data-toggle="tooltip" class="btn btn-info" data-original-title="复制产品" title="复制产品" onclick="copyarticle(this,'确定复制该产品吗？',{$vo.id},'/index.php/Admin/Product/productcopy')"><i class="fa fa-copy"></i></a>
            </td>
          </tr>
        {/foreach}
    </tbody>
</table>
<div>
    <div style="float:left;">共{$count}条</div>
    <div style="float:right;">{$page|raw}</div>
</div>
<script>
    // 点击分页触发的事件
    $(".pagination a").click(function(){
        url = $(this).attr('href');
        ajax_get_table('formSearch',url);
        return false;
    });
    // 点击分页触发的事件
    // $(".pagination a").click(function(){
    //     cur_page = $(this).data('p');
    //     ajax_get_table('formSearch',cur_page);
    // });
    $("#page_info").change(function(){
        cur_page = $(this).data('p');
        ajax_get_table('formSearch',cur_page);
    });

    
</script>